package Sort;

import java.util.TreeSet;

public class Main {
    public static void main(String[] args)
    {
        TreeSet<Student> students = new TreeSet<>(new ScoreComparator());

        students.add(new Student("张三",85));
        students.add(new Student("李四",90));
        students.add(new Student("王五",70));
        students.add(new Student("赵六",95));

        for(Student student : students)
        {
            System.out.println(student);
        }
    }
}
